package cn.maihe.elg.operation.model.vo.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Description
 * @Author caixh
 * @Date 2021/8/11.
 */
@ApiModel(value = "手机验证码校验")
@Data
public class SmsCodeCheckDTO {

    /**
     * 类型
     *  register = 注册
     */
    @ApiModelProperty(value = "验证码")
    @NotNull(message = "验证码不能为空")
    @Size(min=1, max = 4,message = "验证码长度不能超过4位")
    private String code;

    @ApiModelProperty(value = "手机号")
    @NotNull(message = "手机号不能为空")
    @Size(min=1,max = 11,message = "手机号长度不能超过11位")
    private String mobile;
}
